include ../make.inc
# include ../custom.inc

MC64 = ../mc64/*.o
OBJ = dreadrb.o matrix.o solve.o fact.o utils.o \
	  rcm.o get_perm.o memory.o pivot.o bandwidth.o Graph.o

all: lib

lib: mc64 $(OBJ) solver.h
	$(AR) libmatrix.a $(OBJ) $(MC64)

mc64:
	cd ../mc64; make

%.o : %.cpp
	$(CXX) $(CXXFLAGS) -c $< $(INC)

%.o : %.S
	$(CXX) $(CXXFLAGS) -c $< $(INC)

clean:
	rm *.o
	rm *.a
	cd ../mc64; make clean

